//package com.wangyadong.hobby.dubbo.api.api;
//
//import com.alibaba.dubbo.config.ApplicationConfig;
//import com.alibaba.dubbo.config.ProviderConfig;
//import com.alibaba.dubbo.config.RegistryConfig;
//import com.alibaba.dubbo.config.ServiceConfig;
//import com.wangyadong.hobby.admin.servcie.IAnswerService;
//import com.wangyadong.hobby.admin.servcie.impl.AnswerServiceImpl;
//
//import java.io.IOException;
//import java.util.concurrent.locks.ReentrantLock;
//
//public class EchoProvider {
//
//
//    public static void main(String[] args) throws IOException {
//        ServiceConfig<IAnswerService> serviceServiceConfig = new ServiceConfig<>();
//        serviceServiceConfig.setInterface(IAnswerService.class);
//        serviceServiceConfig.setRegistry(new RegistryConfig("zookeeper://127.0.0.1:2181"));
//        serviceServiceConfig.setApplication(new ApplicationConfig("echo-provider"));
//        serviceServiceConfig.setRef(new AnswerServiceImpl());
////        serviceServiceConfig.setModule(null);
////        serviceServiceConfig.setMethods(null);
////        serviceServiceConfig.setPath(null);
////        serviceServiceConfig.setActives(null);
////        serviceServiceConfig.setAsync(null);
////        serviceServiceConfig.setCache(null);
////        serviceServiceConfig.setCallbacks(null);
////        serviceServiceConfig.setConnections(null);
////        serviceServiceConfig.setProvider(new ProviderConfig());
////        serviceServiceConfig.unexport();
////        serviceServiceConfig.set
//        serviceServiceConfig.export();
//        System.in.read();
//
//
//    }
//}
